package com.ruoyi.system.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysObjectPropertyMapper;
import com.ruoyi.system.domain.SysObjectProperty;
import com.ruoyi.system.service.ISysObjectPropertyService;

/**
 * 关联属性Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-10
 */
@Service
public class SysObjectPropertyServiceImpl extends ServiceImpl<SysObjectPropertyMapper, SysObjectProperty> implements ISysObjectPropertyService
{
    @Autowired
    private SysObjectPropertyMapper sysObjectPropertyMapper;

    /**
     * 查询关联属性
     * 
     * @param id 关联属性主键
     * @return 关联属性
     */
    @Override
    public SysObjectProperty selectSysObjectPropertyById(Long id)
    {
        return sysObjectPropertyMapper.selectSysObjectPropertyById(id);
    }

    /**
     * 查询关联属性列表
     * 
     * @param sysObjectProperty 关联属性
     * @return 关联属性
     */
    @Override
    public List<SysObjectProperty> selectSysObjectPropertyList(SysObjectProperty sysObjectProperty)
    {
        return sysObjectPropertyMapper.selectSysObjectPropertyList(sysObjectProperty);
    }

    /**
     * 新增关联属性
     * 
     * @param sysObjectProperty 关联属性
     * @return 结果
     */
    @Override
    public int insertSysObjectProperty(SysObjectProperty sysObjectProperty)
    {
        return sysObjectPropertyMapper.insertSysObjectProperty(sysObjectProperty);
    }

    /**
     * 修改关联属性
     * 
     * @param sysObjectProperty 关联属性
     * @return 结果
     */
    @Override
    public int updateSysObjectProperty(SysObjectProperty sysObjectProperty)
    {
        return sysObjectPropertyMapper.updateSysObjectProperty(sysObjectProperty);
    }

    /**
     * 批量删除关联属性
     * 
     * @param ids 需要删除的关联属性主键
     * @return 结果
     */
    @Override
    public int deleteSysObjectPropertyByIds(Long[] ids)
    {
        return sysObjectPropertyMapper.deleteSysObjectPropertyByIds(ids);
    }

    /**
     * 删除关联属性信息
     * 
     * @param id 关联属性主键
     * @return 结果
     */
    @Override
    public int deleteSysObjectPropertyById(Long id)
    {
        return sysObjectPropertyMapper.deleteSysObjectPropertyById(id);
    }
}
